package com.pcl.mvvm.app.base

import com.witfortos.common.base.IBaseResponse

/**
 *   @auther : tan
 *   time   : 2020-07-10
 */
data class BaseResult<T>(
        val responeMsg: String,
        val requestId: String,
        val responeCode: Int,
        val data: T
) : IBaseResponse<T> {

    override fun responeCode() = responeCode
    override fun requestId() = requestId
    override fun responeMsg() = responeMsg
    override fun data() = data
    override fun isSuccess() = responeCode == 0

}